package cn.edu.hncj.Service;


import cn.edu.hncj.Dao.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo {
    public static void main(String[] args) {
      ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");
      UserDao userDao = (UserDao) app.getBean("UserDao");
      userDao.save();
    }
}
